# 安装 autoconf
add_custom_target(install-autoconf
COMMAND sh -c "command -v automake > /dev/null 2>&1 || (apt-get update && apt-get install -y automake)"
COMMAND sh -c "command -v autoconf > /dev/null 2>&1 || (apt-get update && apt-get install -y autoconf)"
COMMAND sh -c "dpkg -s autopoint > /dev/null 2>&1 || (apt-get update && apt-get install -y autopoint)"
COMMAND sh -c "dpkg -s libtool > /dev/null 2>&1 || (apt-get update && apt-get install -y libtool)"
COMMAND sh -c "command -v gettext > /dev/null 2>&1 || (apt-get update && apt-get install -y gettext)"
# 依赖
COMMENT "✅ 安装 autoconf" VERBATIM)

# 安装 pkg-config
add_custom_target(install-pkg-config
COMMAND sh -c "command -v pkg-config > /dev/null 2>&1 || (apt-get update && apt-get install -y pkg-config)"
COMMENT "✅ 安装 pkg-config" VERBATIM)

add_custom_target(install-meson
COMMAND sh -c "command -v meson > /dev/null 2>&1 || (apt-get update && apt-get install -y meson)"
COMMAND sh -c "command -v ninja > /dev/null 2>&1 || (apt-get update && apt-get install -y ninja ninja-build)"
COMMENT "✅ 安装 meson ninja" VERBATIM)

# 安装 libpsl-dev
add_custom_target(install-libpsl-dev
COMMAND sh -c "dpkg -s libpsl-dev > /dev/null 2>&1 || (apt-get update && apt-get install -y libpsl-dev)"
COMMENT "✅ 安装 libpsl-dev" VERBATIM)

# 安装 uuid-dev
add_custom_target(install-uuid-dev
COMMAND sh -c "dpkg -s uuid-dev > /dev/null 2>&1 || (apt-get update && apt-get install -y uuid-dev)"
COMMENT "✅ 安装 uuid-dev" VERBATIM)

# 安装 libjsoncpp-dev
add_custom_target(install-libjsoncpp-dev
COMMAND sh -c "dpkg -s libjsoncpp-dev > /dev/null 2>&1 || (apt-get update && apt-get install -y libjsoncpp-dev)"
COMMENT "✅ 安装 libjsoncpp-dev" VERBATIM)







